package com.jeesite.modules.dataview.chaierweijin.web;

import com.jeesite.common.config.Global;
import com.jeesite.common.entity.Page;
import com.jeesite.common.lang.DateUtils;
import com.jeesite.common.web.BaseController;
import com.jeesite.modules.dataview.chaierweijin.entity.DcSupImportData;
import com.jeesite.modules.dataview.chaierweijin.entity.ImportResult;
import com.jeesite.modules.dataview.chaierweijin.service.DcSupImportDataService;
import com.jeesite.modules.dataview.chaierweijin.service.DcSupImportDataTwoService;
import com.jeesite.modules.home.entity.EchartsDto;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 拆而未尽表Controller
 * @author dbl
 * @version 2022-08-04
 */
@Controller
@RequestMapping(value = "${adminPath}/dataview/dcSupImportDataTwo")
public class DcSupImportDataTwoController extends BaseController {

	@Autowired
	private DcSupImportDataTwoService dcSupImportDataTwoService;

	@RequestMapping(value = "query1")
	@ResponseBody
	public Page<DcSupImportData> query1(DcSupImportData dcSupImportData, HttpServletRequest request, HttpServletResponse response){
		dcSupImportData.setPage(new Page<>(request, response));
		dcSupImportData.setPageSize(200);
		Page<DcSupImportData>page = dcSupImportDataTwoService.query1(dcSupImportData);
		return page;
	}

	@RequestMapping(value = "query2")
	@ResponseBody
	public Page<DcSupImportData> query2(DcSupImportData dcSupImportData, HttpServletRequest request, HttpServletResponse response){
		dcSupImportData.setPage(new Page<>(request, response));
		dcSupImportData.setPageSize(200);
		Page<DcSupImportData>page = dcSupImportDataTwoService.query2(dcSupImportData);
		return page;
	}

	@RequestMapping(value = "query3")
	@ResponseBody
	public String query3(DcSupImportData dcSupImportData){
		Map<String,Object> map = dcSupImportDataTwoService.query3(dcSupImportData);
		return renderResult(Global.TRUE, "成功",map);
	}

	@RequestMapping(value = "query4")
	@ResponseBody
	public String query4(DcSupImportData dcSupImportData){
		Map<String,Object> map = dcSupImportDataTwoService.query4(dcSupImportData);
		return renderResult(Global.TRUE, "成功",map);
	}

	@RequestMapping(value = "query5")
	@ResponseBody
	public String query5(DcSupImportData dcSupImportData){
		Map<String,Object> map = dcSupImportDataTwoService.query5(dcSupImportData);
		return renderResult(Global.TRUE, "成功",map);
	}

	@RequestMapping(value = "query6")
	@ResponseBody
	public String query6(DcSupImportData dcSupImportData){
		Map<String,Object> map = dcSupImportDataTwoService.query6(dcSupImportData);
		return renderResult(Global.TRUE, "成功",map);
	}

	@RequestMapping(value = "query7")
	@ResponseBody
	public Page<DcSupImportData> query7(DcSupImportData dcSupImportData, HttpServletRequest request, HttpServletResponse response){
		dcSupImportData.setPage(new Page<>(request, response));
		dcSupImportData.setPageSize(200);
		Page<DcSupImportData> page = dcSupImportDataTwoService.query7(dcSupImportData);
		return page;
	}

	@RequestMapping(value = "query8")
	@ResponseBody
	public Page<DcSupImportData> query8(DcSupImportData dcSupImportData, HttpServletRequest request, HttpServletResponse response){
		dcSupImportData.setPage(new Page<>(request, response));
		dcSupImportData.setPageSize(200);
		Page<DcSupImportData> page = dcSupImportDataTwoService.query8(dcSupImportData);
		return page;
	}

	@RequestMapping(value = "query9")
	@ResponseBody
	public String query9(DcSupImportData dcSupImportData){
		Map<String,Object> map = dcSupImportDataTwoService.query9(dcSupImportData);
		return renderResult(Global.TRUE, "成功",map);
	}

	@RequestMapping(value = "query10")
	@ResponseBody
	public String query10(DcSupImportData dcSupImportData){
		Map<String,Object> map = dcSupImportDataTwoService.query10(dcSupImportData);
		return renderResult(Global.TRUE, "成功",map);
	}
}